/*
 * Copyright (c) 2021 Talkweb Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __SSD1306_OLED_H__
#define __SSD1306_OLED_H__
#define __OLED_H

#define OLED_MODE 0
#define SIZE 8
#define XLevelL		0x00
#define XLevelH		0x10
#define Max_Column	128
#define Max_Row		64
#define	Brightness	0xFF 
#define X_WIDTH 	128
#define Y_WIDTH 	64	    

#define OLED_CMD  0	//写命令
#define OLED_DATA 1	//写数据

#define u8 unsigned char
#define u16 unsigned short
#define u32 unsigned int

void oled_init(void);
void OLED_ShowChar(u8 x,u8 y,u8 chr,u8 size1);
void OLED_Clear(void);
void OLED_ShowString(u8 x,u8 y,unsigned char *chr,u8 size1);
void OLED_Refresh(void);
//反显函数
void OLED_ColorTurn(u8 i);
//屏幕旋转180度
void OLED_DisplayTurn(u8 i);
//开启OLED显示 
void OLED_DisPlay_On(void);

#endif

